Skip to main content
GET
/
apiKey
/
beta
/
test-targets
/
{testTargetId}
/
pull
Pull all test case from a test target to use it locally as json or yaml and work with the files directly. There is also a "opposite" endpoint to push the files back to the test target.
curl --request GET \
  --url https://app.octomind.dev/api/apiKey/beta/test-targets/{testTargetId}/pull \
  --header 'X-API-Key: <api-key>'
{
  "testCases": [
    {
      "version": "1",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "runStatus": "OFF",
      "elements": [
        {
          "selectors": [
            {
              "selectorType": "FRAME",
              "selector": "<string>",
              "options": {
                "name": "<string>",
                "exact": true,
                "checked": true,
                "disabled": true,
                "expanded": true,
                "includeHidden": true,
                "level": 123,
                "pressed": true,
                "selected": true,
                "hasText": "<string>",
                "hasNotText": "<string>"
              }
            }
          ],
          "interaction": {
            "action": "CLICK",
            "calledWith": {
              "button": "right",
              "double": true,
              "force": true
            }
          },
          "assertion": {
            "expectation": "VISIBLE",
            "calledWith": "<unknown>"
          },
          "ignoreFailure": true
        }
      ],
      "description": "<string>",
      "prompt": "<string>",
      "type": "LOGIN",
      "tagNames": [
        "<string>"
      ],
      "excludedEnvironmentNames": [
        "<string>"
      ],
      "dependencyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "teardownId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "entryPointUrlPath": "<string>",
      "folderName": "<string>",
      "externalId": "<string>",
      "localEditingStatus": "IN_PROGRESS"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Path Parameters

testTargetId
string<uuid>
required

The ID of the test target

Query Parameters

testPlanId
string<uuid>

Optional test plan ID to filter test cases by a specific test plan

testReportId
string<uuid>

Optional test report ID to pull test cases that were successfully autofixed in that report

Response

Test target pull data retrieved successfully

schema for import and export of test cases

testCases
object[]
required